package cn.lger.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * Code that Changed the World
 *
 * @author Pro
 * @date 2018-06-14.
 */

@ApiModel(description="分页实体")
public class Page<T> {

    /**
     * 当前页
     */
    @ApiModelProperty("当前页")
    private int page;
    /**
     * 一页大小
     */
    @ApiModelProperty("一页大小")
    private int size;
    /**
     * 记录总数
     */
    @ApiModelProperty("记录总数")
    private int count;
    /**
     * 查询内容
     */
    @ApiModelProperty("查询内容,为list")
    private List<T> content;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<T> getContent() {
        return content;
    }

    public void setContent(List<T> content) {
        this.content = content;
    }
}
